package com.dragon.concurrent.demo.catchException;

public class CatchException {

    public static void main(String[] args) {
        Thread thread = new Thread(() -> {
            int a = 10;
            int b = 0;
                int c = a / b;
        });
        thread.setUncaughtExceptionHandler((t, e) -> {
            System.out.println(t);
            System.out.println(e);
        });
        thread.start();

    }
}
